<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <tbody th:id="dataTbody" th:if="${List == null}">
    <tr>
    <td th:colspan="8" style="text-align: center">暂无数据</td>
    </tr>
    </tbody>
<!-- 不为空的情况-->
    <th>学号</th>  <th>姓名</th><br/>
    <tbody th:id="dataTbody" th:if="${List != null}">
    <tr th:each="Student:${List}">
    <td th:text="${Student.sId}">学号</td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <td th:text="${Student.sName}">姓名</td>
        <br/>
    </tr>
    </tbody>

</body>
</html>
